package com.sntk.organauthomanager.domain.model;

import java.util.List;

/**
 * @作者：wgchao
 * @时间：21:33 2020/7/18 0018
 * @用途：为用户分配角色
 **/
public class assignRolesToUserService {
    /**
     * 分配角色
     * @param roles
     */
    public UserRole assign(Organization organization, User user, List<Role> roles){
        UserRole userRole = new UserRole(organization, user, roles);
        return userRole;
    }
}
